< previous page page_709 next page >

Page 709
The code in Listing 18.12 displays detailed properties for each column in the Authors table at the data source. Note that the .Value and the .OriginalValue properties have been left out of this example. You also can access these properties in your programs. Also, the value of the .Type property maps to a set of predefined Visual Basic constants. Table 18.8 lists those values.
Table 18.8. Various type values of the rdoColumns.Type property.
Visual Basic ConstantInteger ValueDescription
rdTypeCHAR1Fixed-length character string. Length set by Size property.
rdTypeNUMERIC2Signed, exact numeric value with precision p and scale s (1 p 15; 0 s p).
rdTypeDECIMAL3Signed, exact numeric value with precision p and scale s (1 p 15; 0 s p).
rdTypeINTEGER4Signed, exact numeric value with precision 10, scale 0 (signed: -231 n 231-1; unsigned: 0 n 232-1).
rdTypeSMALLINT5Signed, exact numeric value with precision 5, scale 0 (signed: -32,768 n 32,767; unsigned: 0 n 65,535).
rdTypeFLOAT6Signed, approximate numeric value with mantissa precision 15 (zero or absolute value 10-308 to 10308).
rdTypeREAL7Signed, approximate numeric value with mantissa precision 7 (zero or absolute value 10-38 to 1038).
rdTypeDOUBLE8Signed, approximate numeric value with mantissa precision 15 (zero or absolute value 10-308 to 10308).
rdTypeDATE9Date: Data-source dependent.
rdTypeTIME10Time: Data-source dependent.
rdTypeTIMESTAMP11TimeStamp: Data-source dependent.
rdTypeVARCHAR12Variable-length character string. Maximum length: 255.
rdTypeLONGVARCHAR1Variable-length character string. Maximum length determined by data source.

continues

 
< previous page page_709 next page >

If you like this book, buy it!